﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace eLuk.CommandEngine
{
	public class Expressions
	{
		public const string Folder = @".*\((\\.*)+\)\s[""]?(.|[NIL]{3})[""]?\s[""]?([^""]*)[""]?";
		public const string BetweenParanthesis = @"\(([^)]*)\)";
		public const string FolderExists = @"\* (\d{1,}) EXISTS";
		public const string FolderRecent = @"\* (\d{1,}) RECENT";
		public const string FolderUnseen = @"\* (\d{1,}) UNSEEN";

		public const string FolderUIValidity = @"UIDVALIDITY (\d{1,})";
		public const string FolderUIDNext = @"UIDNEXT (\d{1,})";
		public const string FolderHighestModSequence = @"HIGHESTMODSEQ (\d{1,})";
		public const string FolderCopyUID = @"COPYUID (^\s*) (\d{1,}) (\d{1,})";
		public const string FolderPermanentFlags = @"\* OK \[PERMANENTFLAGS \((.*)\)\]";
		public const string ValidateEmail = @"\A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\Z";

	}
}
